package com.task.quartz.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

/**
 * quartz测试任务2
 *
 * @author sunhui
 * @date 2018/4/26
 */
public class TestQuartz2 implements Job {
    /**
     * 执行定时任务
     *
     * @param jobExecutionContext
     * @throws JobExecutionException
     */
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("quartz2 task " + new Date());
    }
}
